<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
请在下面文本框中输入1~100之间的任意整数
<form action="control.jsp" method="post">
    <input type="text" name="num" id="txtYear">
    <input type="submit" value="试一下手气">
    <input type="hidden" name="randomnum" value="<%=(int)(Math.random()*100)+1 %>">
</form>
</body>
</html>
